package com.solome.util.csv;

import java.lang.reflect.Field;

public class CsvParam{
	
	private int column;
	private DataType dataType;
	private byte num;
	private Field field;
	
	/** 对象名称 */
	protected String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the column
	 */
	public int getColumn() {
		return column;
	}

	/**
	 * @return the dataType
	 */
	public DataType getDataType() {
		return dataType;
	}

	/**
	 * @return the field
	 */
	public Field getField() {
		return field;
	}

	/**
	 * @param column
	 *            the column to set
	 */
	public void setColumn(int column) {
		this.column = column;
	}

	/**
	 * @param dataType
	 *            the dataType to set
	 */
	public void setDataType(DataType dataType) {
		this.dataType = dataType;
	}

	/**
	 * @param field
	 *            the field to set
	 */
	public void setField(Field field) {
		this.field = field;
	}

	@Override
	public String toString() {
		String msg = "[Parameter] DataType=" + dataType;
		msg = msg + ", Field=" + field.getName();
		return msg;
	}

	public byte getNum() {
		return num;
	}

	public void setNum(byte num) {
		this.num = num;
	}
}
